package com.elephant.core.utils;

/**
 * @Author: hai
 * @Date: 2019/1/10 11:07
 */
public class ValidatorResult {

    private boolean access;
    /**
     * json
     */
    private String message;
    public static ValidatorResult access(){
        return new ValidatorResult(true,null);
    }

    public boolean isAccess() {
        return access;
    }

    public void setAccess(boolean access) {
        this.access = access;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ValidatorResult() {
    }

    public ValidatorResult(boolean access, String message) {
        this.access = access;
        this.message = message;
    }
}
